package com.juc.callable.callable8;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class Test2 {

	/**
	 * 
	 * execute方法出现异常后直接打印堆栈信息，而submit方法
	 * 可以捕获继续
	 */
	public static void main(String[] args) {
		ThreadPoolExecutor executor = new ThreadPoolExecutor(50, Integer.MAX_VALUE, 5, TimeUnit.SECONDS, new LinkedBlockingDeque<Runnable>());
		executor.execute(new Runnable() {
			
			@Override
			public void run() {
				Integer.parseInt("a");	
			}
		});
	}
}
